<div class="entregables view">
<h2><?php  __('Entregable');?></h2>
	<table<?php $i = 0; $class = ' class="altrow"';?>
>
		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $entregable['Entregable']['id']; ?>
			&nbsp;
		</td>
		</tr>		<tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Servicio'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($entregable['Servicio']['id'], array('controller' => 'servicios', 'action' => 'view', $entregable['Servicio']['id'])); ?>
			&nbsp;
		</td>
		</tr>		</tr>			<td<?php if ($i % 2 == 0) echo $class;?>><?php __('Nm Entregable'); ?></td>
			<td<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $entregable['Entregable']['nm_entregable']; ?>
			&nbsp;
		</td>
		</tr>	</table>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Entregable', true), array('action' => 'edit', $entregable['Entregable']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Entregable', true), array('action' => 'delete', $entregable['Entregable']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $entregable['Entregable']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Entregables', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Entregable', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Servicios', true), array('controller' => 'servicios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Servicio', true), array('controller' => 'servicios', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Textos', true), array('controller' => 'textos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Texto', true), array('controller' => 'textos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Textos');?></h3>
	<?php if (!empty($entregable['Texto'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Entregable Id'); ?></th>
		<th><?php __('Descripcion'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($entregable['Texto'] as $texto):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $texto['id'];?></td>
			<td><?php echo $texto['entregable_id'];?></td>
			<td><?php echo $texto['descripcion'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'textos', 'action' => 'view', $texto['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'textos', 'action' => 'edit', $texto['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'textos', 'action' => 'delete', $texto['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $texto['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Texto', true), array('controller' => 'textos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
